package org.jeecg.modules.demo.castcardrecord.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.castcardrecord.entity.CastCardRecord;
import org.jeecg.modules.demo.castcardrecord.mapper.CastCardRecordMapper;
import org.jeecg.modules.demo.castcardrecord.service.ICastCardRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 发卡记录
 * @Author: jeecg-boot
 * @Date: 2022-01-07
 * @Version: V1.0
 */
@Service
public class CastCardRecordServiceImpl extends ServiceImpl<CastCardRecordMapper, CastCardRecord> implements ICastCardRecordService {

    @Autowired
    private CastCardRecordMapper castCardRecordMapper;

    @Override
    public List<CastCardRecord> listEx(String storeId, String cardName, String name, String phone, String startDate, String endDate, Integer pageNo, Integer pageSize) {
        return castCardRecordMapper.listEx(storeId, cardName, name, phone, startDate, endDate, pageNo, pageSize);
    }

    @Override
    public Integer countEx(String storeId, String cardName, String name, String phone, String startDate, String endDate) {
        return castCardRecordMapper.countEx(storeId, cardName, name, phone, startDate, endDate);
    }
}
